package com.bysj.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.bysj.system.mapper.ContractManagementMapper;
import com.bysj.system.domain.ContractManagement;
import com.bysj.system.service.IContractManagementService;

/**
 * 合同管理Service业务层处理
 * 
 * @author bysj
 * @date 2024-02-03
 */
@Service
public class ContractManagementServiceImpl implements IContractManagementService 
{
    @Autowired
    private ContractManagementMapper contractManagementMapper;

    /**
     * 查询合同管理
     * 
     * @param id 合同管理主键
     * @return 合同管理
     */
    @Override
    public ContractManagement selectContractManagementById(Long id)
    {
        return contractManagementMapper.selectContractManagementById(id);
    }

    /**
     * 查询合同管理列表
     * 
     * @param contractManagement 合同管理
     * @return 合同管理
     */
    @Override
    public List<ContractManagement> selectContractManagementList(ContractManagement contractManagement)
    {
        return contractManagementMapper.selectContractManagementList(contractManagement);
    }

    /**
     * 新增合同管理
     * 
     * @param contractManagement 合同管理
     * @return 结果
     */
    @Override
    public int insertContractManagement(ContractManagement contractManagement)
    {
        return contractManagementMapper.insertContractManagement(contractManagement);
    }

    /**
     * 修改合同管理
     * 
     * @param contractManagement 合同管理
     * @return 结果
     */
    @Override
    public int updateContractManagement(ContractManagement contractManagement)
    {
        return contractManagementMapper.updateContractManagement(contractManagement);
    }

    /**
     * 批量删除合同管理
     * 
     * @param ids 需要删除的合同管理主键
     * @return 结果
     */
    @Override
    public int deleteContractManagementByIds(Long[] ids)
    {
        return contractManagementMapper.deleteContractManagementByIds(ids);
    }

    /**
     * 删除合同管理信息
     * 
     * @param id 合同管理主键
     * @return 结果
     */
    @Override
    public int deleteContractManagementById(Long id)
    {
        return contractManagementMapper.deleteContractManagementById(id);
    }
}
